import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import tab from '@/plugins/tab.js' // plugins
import {
	http
} from '@/utils/luch-request/services/service.js' // 全局挂载引入，配置相关在该index.js文件里修改
import './permission' // permission
import {
	getPageConfig,
	initFormData,
	setItems,
	handleItems
} from './utils/common.js'
// 引入uView
import uView from 'uview-ui'
Vue.use(uView)
uni.$u.config.unit = 'rpx' // 不配的情况下默认单位px
Vue.use(plugins)

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$http = http
Vue.prototype.$jump = tab
Vue.prototype.$t = getPageConfig
Vue.prototype.$initFormData = initFormData
Vue.prototype.$setItems = setItems
Vue.prototype.$handleItems = handleItems

App.mpType = 'app'

const app = new Vue({
	...App
})

app.$mount()